define(() => {
    return function (id, goodsMsg) {
        let i = 0;
        goodsMsg.some((val, idx) => {
            i = idx;
            return val.id === id;
        })
        goodsMsg.splice(i, 1);
        localStorage.setItem("goodsMsg", JSON.stringify(goodsMsg))
    }
})